package com.neu.cloudfactory.repository;

import com.neu.cloudfactory.bean.Loan.Loan;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;

import javax.transaction.Transactional;

public interface LoanRepository extends JpaRepository<Loan,Integer> {
    @Transactional
    void deleteAllByEquipmentid(Integer equipmentid);
}
